package com.zhuhjay.service.system.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Zhuhjay
 * @since 2023-05-10
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_picture")
@ApiModel(value = "SystemPicture对象", description = "")
public class SystemPicture implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("真实文件名")
    private String realName;

    @ApiModelProperty("文件相对路径(http)")
    private String filePath;

    @ApiModelProperty("图片大小(B)")
    private Long size;

    @ApiModelProperty("来源")
    private String origin;

    @ApiModelProperty("创建文件的用户id")
    private Integer userId;

    @ApiModelProperty("创建时间(上传时间)")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
}
